import request from "superagent";
import {
    serverPath,
    json
} from "../../common/config.js";
import {
    prepareRequest,
    serviceInterceptor
} from "../../common/utils";

class QuestionTypeService{
    constructor(){

    }
    @serviceInterceptor()
    async getQuestionType(){
        let req = request.get(`${serverPath}questionTypes`)
        .accept(json);

    return await prepareRequest(req);
    }
}
export default QuestionTypeService;